'use strict'
const moment = require('moment')
module.exports = {
  log: (url) => {
    return `<script>
    var url= '${url}';
    console.log(url)
    </script>`
  },
  dateFormat (date, format) {
    return moment(date || new Date()).format(format || 'YYYY-MM-DD HH:mm:ss')
  }
}
